-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: Collect git action data in case of a failure #57
Conversation
looks like this (all on stdout, if we want a file(s) it can be done as well, but git actions will need to collect it)
|
Btw first test flakes happens here as well Opened an issue on CNAO, but it affects this repo as standalone as well |
injected an error and trying to collect to git actions artifacts folder |
8d9bbe9
to
716a003
Compare
The files are uploaded in the job,
|
12ac56f
to
aeb29d4
Compare
/hold cancel the lane will protect from adding the error injection anyhow |
Very nice.
|
Thanks, not sure, will post if i find EDIT
Size limit - https://github.com/actions/upload-artifact?tab=readme-ov-file#number-of-artifacts |
zip also available at the bottom of the summary page |
6c09ba4
to
170fa66
Compare
Signed-off-by: Or Shoval <[email protected]>
/approve I'm assuming https://github.com/kubevirt/ipam-extensions/actions/runs/10438749437 to be an example of a run where the logs were captured. Good work. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maiqueb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Indeed thanks |
Btw not related to this PR, but the XML is not generated, hence not collected |
What this PR does / why we need it:
Collect k8s logs upon errors to ease debugging.
For more info see https://github.com/actions/upload-artifact
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
It assume there are no parallel runs of the tests (it cleans the logs folder).
Each error would consume around 0.5Mb zipped.
We might want to consider reducing the retention, so it wont limit us
but on the other hand this repo isn't super active / flaky, so we can just be proactive.
Tested on CI by injecting an error.
Upon needs we can add logs (i.e virt-launcher), describe VMIs and so on.
Release note: